import { ref } from "vue";
import { headerTextType, personType } from "./types";


export const headerFun = ref<headerTextType>({
 text:[],
})

export const headerAdd = (text: string) => {
 headerFun.value.text.push(text)
}

export const headerDel = (index: number) => {
 headerFun.value.text.splice(index, 1)
}

export const PeopleInfo = ref<personType>({
 name: "游客",
 headimg: "",
 phone: "",
 value: 0
})
